package com.zr.inquiry.total.model.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zr.inquiry.partner.model.pojo.Partner;
import com.zr.inquiry.spare.model.pojo.InquirySpare;
import com.zr.share.enums.InquiryCurrencyEnum;
import com.zr.share.enums.InquiryEnum;
import com.zr.share.enums.TaxEnum;

import java.util.Date;
import java.util.List;

/**
 * @ClassName InquiryTotalResultVo
 * @Description TODO 查看定单详情的返回参数vo类
 * @Author 马家奎
 * @Date 2019/11/15 9:54
 */

public class InquiryTotalResultVo {

    private String requestForQuotationId;
    private String legalPersonId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date createStartTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date createEndTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date endTime;
    private String legalPersonName;
    private String creatorName;
    private Integer inquiryStatus;
    private String inquiryStatusName;
    private Integer type;
    private String typeName;
    private Integer isTax;
    private String isTaxName;
    private Integer currencyCode;
    private String currencyCodeName;

    public Integer getCurrencyCode() {
        return currencyCode;
    }

    public void setCurrencyCode(Integer currencyCode) {
        this.currencyCode = currencyCode;
        setCurrencyCodeName();
    }

    public String getCurrencyCodeName() {
        return currencyCodeName;
    }

    private void setCurrencyCodeName() {
        this.currencyCodeName = InquiryCurrencyEnum.getName(this.getCurrencyCode());
    }

    public String getTypeName() {
        return typeName;
    }

    private void setTypeName() {
        this.typeName = InquiryEnum.getName(this.type);
    }

    public String getIsTaxName() {
        return isTaxName;
    }

    private void setIsTaxName() {
        this.isTaxName = TaxEnum.getName(this.isTax);
    }

    private List<Partner> inquiryDetailsData;
    private List<InquirySpare> parterList;


    public String getRequestForQuotationId() {
        return requestForQuotationId;
    }

    public void setRequestForQuotationId(String requestForQuotationId) {
        this.requestForQuotationId = requestForQuotationId;
    }

    public String getLegalPersonId() {
        return legalPersonId;
    }

    public void setLegalPersonId(String legalPersonId) {
        this.legalPersonId = legalPersonId;
    }

    public Date getCreateStartTime() {
        return createStartTime;
    }

    public void setCreateStartTime(Date createStartTime) {
        this.createStartTime = createStartTime;
    }

    public Date getCreateEndTime() {
        return createEndTime;
    }

    public void setCreateEndTime(Date createEndTime) {
        this.createEndTime = createEndTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getLegalPersonName() {
        return legalPersonName;
    }

    public void setLegalPersonName(String legalPersonName) {
        this.legalPersonName = legalPersonName;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public Integer getInquiryStatus() {
        return inquiryStatus;
    }

    public void setInquiryStatus(Integer inquiryStatus) {
        this.inquiryStatus = inquiryStatus;
    }

    public String getInquiryStatusName() {
        return inquiryStatusName;
    }

    public void setInquiryStatusName(String inquiryStatusName) {
        this.inquiryStatusName = inquiryStatusName;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
        setTypeName();
    }

    public Integer getIsTax() {
        return isTax;
    }

    public void setIsTax(Integer isTax) {
        this.isTax = isTax;
        setIsTaxName();
    }

    public List<Partner> getInquiryDetailsData() {
        return inquiryDetailsData;
    }

    public void setInquiryDetailsData(List<Partner> inquiryDetailsData) {
        this.inquiryDetailsData = inquiryDetailsData;
    }

    public List<InquirySpare> getParterList() {
        return parterList;
    }

    public void setParterList(List<InquirySpare> parterList) {
        this.parterList = parterList;
    }
}
